#include <iostream>

using std::cout;
using std::endl;

void test()
{
    int number = 100;
    auto f = [&number](int value){
        ++number;
        cout << "number = " << number << endl;
        cout << "value = " << value << endl;
    };
    f(10);

    cout << endl << endl << "========" << endl;
    number = 2000;

    f(30);
}

int main(int argc, char *argv[])
{
    test();
    return 0;
}

